package com.xiaoma.spring.factorybean;

import org.springframework.beans.factory.FactoryBean;
import org.springframework.stereotype.Component;

import com.xiaoma.weakreference.Car;

/**
 * @author xiaomacdut
 * @date 2020年2月28日 下午12:07:51
 */
@Component("protoTypeCarFactoryBean")
public class ProtoTypeCarFactoryBean implements FactoryBean<Car>{
    
    public Car getObject() throws Exception{
        return new Car();
    }
    
    public Class<?> getObjectType(){
        return Car.class;
    }
    
    public boolean isSingleton(){
        return false;
    }
}